#ifndef ADDDILUENT_H
#define ADDDILUENT_H

#include <QWidget>
#include <QTimer>

#include "VirtualDevice/virtualdevice.h"
#include "Auxiliary/BusinessLogic/adddiluent.h"
#include "Auxiliary/View/processbardialog.h"

class AddDiluent : public QWidget
{
    Q_OBJECT
public:
    explicit AddDiluent(QWidget *parent = 0);
    void showProcessDialog();
    ~AddDiluent();

signals:

public slots:
    void onTimeFuncCompelet(IVirtualDevice::TimeFunctionState tfSta);
    void on_countKeyTimer_Timeout();
    void on_timeFuncTimer_Timeout();

private:
    ProcessBarDialog *processBarDialog;
    VirtualDevice *virtualDevice;
    QTimer *countKeyTimer;
    QTimer *timeFuncTimer;
    QString optName;
    VirtualDevice::TimeFunctionState timeFuncState;
    int timeFuncTotalTime;
    int timeUnits;
    int processValue;
};

#endif // ADDDILUENT_H
